
	var num=17;
	var mode=1;
function input(){
	
	if(document.getElementById("power_btn").checked==true){
		
		document.getElementById("power_icon").style.color="#008000";
		document.getElementById("forge_num").innerHTML=num+"<span>℃</span>";
		document.getElementById("remote_num").innerHTML=num+"<span>℃</span>";
		
			
		
	}else if(document.getElementById("power_btn").checked==false){
		num=17;
		document.getElementById("power_icon").style.color="red";
		document.getElementById("remote_num").innerHTML=" ";
		document.getElementById("forge_num").innerHTML=" ";
		
	}

}
	
	function down_temp(){
		var down_num=num--;
		if(down_num>=17 && down_num<=22){
			if(document.getElementById("power_btn").checked){
			document.getElementById("forge_num").innerHTML=down_num+"<span>℃</span>"
			document.getElementById("remote_num").innerHTML=down_num+"<span>℃</span>";
					
			}else if(document.getElementById("power_btn").checked==false){
				num=17;
				document.getElementById("remote_num").innerHTML="";
				document.getElementById("forge_num").innerHTML="";
			}
		}else if(down_num<17){
			alert("17℃为空调最小值");
			console.log("22℃为空调最大值")
		}
	}
	
	
function plus_temp(){
	
	var plus_num=num++;
	if(plus_num>=17 && plus_num<=22){
		if(document.getElementById("power_btn").checked){
		document.getElementById("forge_num").innerHTML=plus_num+"<span>℃</span>";
		document.getElementById("remote_num").innerHTML=plus_num+"<span>℃</span>";
				
		}else if(document.getElementById("power_btn").checked==false){
			num=17;
			document.getElementById("remote_num").innerHTML="";
			document.getElementById("forge_num").innerHTML="";
		}
	}else if(plus_num>22){
		alert("22℃为空调最大值");
		console.log("22℃为空调最大值")
	}
	
}

function mode_switch(){
	var mode_plus=mode++;
	console.log(mode_plus)
	if(document.getElementById("power_btn").checked){
		mode_plus=0;
		if(mode_plus=1){
			document.getElementById("forge_mode_span").innerHTML="<p>℃</p>";
		}else if(mode_plus=2){
			document.getElementById("forge_mode_span").innerHTML="<p>hahhaha</p>";
		}else if(mode_plus=3){
			document.getElementById("forge_mode_span").innerHTML="<p>lalala</p>";
		}
	}else if(document.getElementById("power_btn").checked==false){
		mode_plus=0;
		document.getElementById("forge_mode_span").innerHTML="";
	}
	
}